package top.hongthorn.mapper;

import org.apache.ibatis.annotations.Param;
import top.hongthorn.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author 泓宇网络科技工作室
 * @since 2023-12-23 21:11:10
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    public User login(@Param("username") String username, @Param("password") String password);

    public Integer register(@Param("username") String username, @Param("password") String password);

    public Integer findByUsername(@Param("username") String username);

    public Integer updateUserPassword(@Param("username") String username, @Param("password") String password);

    public Integer userState(@Param("state") Integer state, @Param("id") Integer id);

    public Integer deleteUser(@Param("id") Integer id);

}
